﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MetroFramework.Forms;

namespace NewCapturerDemo
{
    public partial class FormRotateFlipSetting : MetroForm
    {
        private RotateFlipType _option = RotateFlipType.RotateNoneFlipX;

        public RotateFlipType Option
        {
            get { return _option; }
        }

        public FormRotateFlipSetting(RotateFlipType option)
        {
            _option = option;
            InitializeComponent();
        }

        public FormRotateFlipSetting()
        {
            InitializeComponent();
        }

        private void buttonCancell_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            _option = (RotateFlipType)comboBoxRotateFlipTypes.SelectedIndex;
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void FormRotateFlipSetting_Load(object sender, EventArgs e)
        {
            comboBoxRotateFlipTypes.SelectedIndex = (int)_option;
        }
    }
}
